package hellfire.platform.graphics;

import java.util.Vector;

import hellfire.game.Chicken;
import hellfire.system.R;
import hellfire.system.graphics.GLImage;
import hellfire.system.graphics.GLRelVec2;

public class ChickenRenderer extends AbstractRenderer
{
	private static GLImage chickenSprite = null;
	
	public void draw(float[] matrix, Object obj)
	{
		Chicken c = (Chicken) obj;
		if(chickenSprite == null)
		{
			chickenSprite = new GLImage(R.drawable.chicken, new GLRelVec2(0,0), c.getRenderDim());
		}
		
		chickenSprite.setPos(c.getRenderPos());
		chickenSprite.draw(matrix);
		
	}

	
}
